//<script type='text/javascript'>

win.asset._proto_	= {
	blank	: function( string ) {

		this.appendChild( div = new Element("div", { class:"ico new" }).update( string ).observe( "click", this.add.bind( this )));
		return div;
	},   
   
    plus	: function(tr) {
        obj = this.list[tr.ancestors()[2].id];
        obj.vars.id = tr.id.split("."); obj.vars.id= obj.vars.id[1];
        $('column_right').insert(win.asset.el('asset.obj.'+obj.vars.type+'.'+obj.vars.id, obj.tool, 'edit', obj.vars), {position:'after'});
    },
    
    add		: function() {
		
		$('column_right').insert( new Win().request({ type: this.vars.type, action:'new', vars:this.vars }));
    },
    
	kill	: function(element,tr) {
		delete this.list[tr.ancestors()[2].id];
		vars = win.float.list[tr.id];
		xhttp.send('ajx/mod.php', {trg:tr.ancestors()[2].id+".comment", wtype:'push', tool:vars.tool, action:"kill", 'vars':vars});
		tr.remove();
    }
}
